//
//  WeiTuoCell.m
//  RENTVISITOR
//
//  Created by wonder on 2017/10/26.
//  Copyright © 2017年 UNN. All rights reserved.
//

#import "WeiTuoCell.h"

@implementation WeiTuoCell
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self setUI];
    }
    return self;
}
- (void)setModel:(NSArray *)model
{
    _model = model;
}
- (void)setUI
{
    self.MainLable = [[UILabel alloc]init];
    self.MainLable.text = @"uilable";
    self.MainLable.font = [UIFont systemFontOfSize:15];
    self.MainLable.textAlignment = NSTextAlignmentLeft;
    self.MainLable.textColor = [UIColor colorWithHexString:@"#101010"];
    [self addSubview:self.MainLable];
    [self.MainLable mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(self.mas_left).mas_offset(40*ScaleWidth);
        make.top.mas_equalTo(self).mas_offset(36*ScaleHeight);
//        make.height.mas_equalTo(30*ScaleHeight);
        make.size.mas_equalTo(CGSizeMake(120*ScaleWidth, 15*ScaleHeight));
    }];
    self.MyTextField = [[UITextField alloc]init];
    [self addSubview:self.MyTextField];
    self.MyTextField.placeholder = @"Password";
    self.MyTextField.secureTextEntry = YES;
    
    
//    [self.MyTextField mas_makeConstraints:^(MASConstraintMaker *make) {
//        make.left.mas_equalTo(PassImage.mas_right).mas_offset(25*ScaleWidth);
//        make.centerY.mas_equalTo(PassImage.mas_centerY);
//        make.right.mas_equalTo(backView.mas_right).mas_offset(-25*ScaleWidth);
//        make.height.mas_equalTo(80*ScaleHeight);
//    }];

}
- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
